<template>
  <el-container>
    <el-header>
      <!-- <img src="../assets/logo.png"> -->
      <img height="40" :src="logo" />
    </el-header>
    <el-container>
      <el-aside width="200px">
        <ul>
          <li>
            <!-- <router-link exact-active-class="active" tag="span" :to="{ name: 'Admin' }">Dashboard</router-link> -->
            <router-link tag="span" :to="{ name: 'Admin' }"
              >Dashboard</router-link
            >
          </li>
          <li>
            <router-link tag="b" :to="{ name: 'AdminArticle' }"
              >文章管理</router-link
            >
          </li>
          <li>
            <router-link :to="{ name: 'AdminAbout' }">关于我们</router-link>
          </li>
        </ul>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import logo from "../assets/logo.png";
export default {
  data() {
    return {
      logo,
    };
  },
};
</script>
<!-- 
http://localhost:8080/admin
http://localhost:8080/admin/article
http://localhost:8080/admin/about
 -->
<style scoped lang="less">
@header-height: 80px;

.active {
  color: red;
}

.active-orange {
  color: #ff7600;
}

.el-header {
  background-color: #b3c0d1;
  color: #333;
  height: @header-height !important;
  display: flex;
  align-items: center;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  height: calc(100vh - @header-height);
}

.el-container {
}
</style>
